-
Notifications
You must be signed in to change notification settings - Fork 548
chore(types): Top-level PR for Guardrails type-cleaning (925 errors) #1367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1367 +/- ##
========================================
Coverage 71.62% 71.62%
========================================
Files 171 171
Lines 17020 17020
========================================
Hits 12191 12191
Misses 4829 4829
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Note to self before merging:
|
Signed-off-by: Mike McKiernan <[email protected]>
* Updated notebook 1 with VDR feedback * Updated notebook 2 (Jaeger) with VDR comments * Replace Llama 3.1 8B with Llama 4 scout as main model * Correct type in cell 10 notebook 2
* chore(release): prepare for v0.16.0 ------ Co-authored-by: tgasser-nv <[email protected]> Co-authored-by: tgasser-nv <[email protected]> Co-authored-by: Pouyanpi <[email protected]>
Signed-off-by: Tim Gasser <[email protected]>
…1.0 (#1365) Add example configuration and documentation for using NVIDIA NeMoGuard NIMs, including content moderation, topic control, and jailbreak detection.
…1399) * Checkin of demo script link * Update getting-started.md Signed-off-by: Tim Gasser <[email protected]> * docs: edit 1399 (#1400) * edit more * more fixes --------- Signed-off-by: Tim Gasser <[email protected]> Co-authored-by: Miyoung Choi <[email protected]>
Update verbose logging to safely handle cases where log records may not have 'id' or 'task' attributes. Prevents potential AttributeError and improves robustness of LLM and prompt log output formatting.
Remove branch restriction from pull_request trigger to allow codecov coverage reporting on PRs targeting any branch, not just develop.
) Implements tool call extraction and passthrough functionality in LLMRails: - Add tool_calls_var context variable for storing LLM tool calls - Refactor llm_call utils to extract and store tool calls from responses - Support tool calls in both GenerationResponse and dict message formats - Add ToolMessage support for langchain message conversion - Comprehensive test coverage for tool calling integration
… Runnable protocol support (#1366) - Implement comprehensive async/sync invoke, batch, and streaming support - Add robust input/output transformation for all LangChain formats (ChatPromptValue, BaseMessage, dict, string) - Enhance chaining behavior with intelligent __or__ method handling RunnableBinding and complex chains - Add concurrency controls, error handling, and configurable blocking messages - Implement proper tool calling support with tool call passthrough - Add extensive test suite (14 test files, 2800+ lines) covering all major functionality including batching, streaming, composition, piping, and tool calling - Reorganize and expand test structure for better maintainability apply review suggestions
…Rails (#1369) Ensure AIMessage responses from RunnableRails contain the same metadata fields (response_metadata, usage_metadata, additional_kwargs, id) as direct LLM calls, enabling consistent LangChain integration behavior.
Enhance streaming in RunnableRails to include generation metadata in streamed chunks. Skips END_OF_STREAM markers and updates chunk formatting to support metadata for AIMessageChunk outputs. This improves compatibility with consumers expecting metadata in streaming responses.
Remove the push trigger from the PR Tests workflow to avoid duplicate runs when a pull request is updated. The workflow will now only run on pull_request events, ensuring a single execution per PR update.
…1382) Introduce tool output/input rails configuration and Colang flows for tool call validation and parameter security checks. Add support for BotToolCall event emission in passthrough mode, enabling tool call guardrails before execution.
…ion and processing (#1386) - Add UserToolMessages event handling and tool input rails processing - Fix message-to-event conversion to properly handle tool messages in conversation history - Preserve tool call context in passthrough mode by using full conversation history - Support tool_calls and tool message metadata in LangChain format conversion - Include comprehensive test suite for tool input rails functionality test(runnable_rails): fix prompt format in passthrough mode feat: support ToolMessage in message dicts refactor: rename BotToolCall to BotToolCalls
…calling (#1405) * fix: preserve message metadata in RunnableRails tool calling - Extract message conversion logic to centralized message_utils module - Dynamically preserve all LangChain message fields (tool_calls, additional_kwargs, etc.) - Fix tool calling metadata loss in passthrough mode - Add comprehensive unit tests for message conversions
…tegration (#1355) --------- Co-authored-by: Trent Holmes <[email protected]> Co-authored-by: Karanjot Singh Saggu <[email protected]>
…me (#1401) Signed-off-by: Curtis G. Northcutt <[email protected]>
Documentation preview |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Closing this PR, as the plan is now to merge module-level type-cleaning into |
Description
This top-level PR combines all the Sub-PRs at the module-level into a single PR that can be merged and rebased against.
Sub-PRs
Related Issue(s)
Checklist